realioseb / dashboard_realioseb Goto Github PK
View Code? Open in Web Editor NEWweb III project
web III project
#6 იშუში აღწერილი პროცესის შედეგი სასურველია დავაკეშიროთ ლოკალურად მონაცემთა ბაზაში რათა ყოველ ჯერზე არ ვაგზავნოთ მოთხოვნები ქსელში.
კეშირებისთვის დაგვჭირდება მიღებული სტრუქტურის JSON
ფორმატში გარდაქმნა json_encode(...)
ფუნქციის მეშვეობით.
გავარჩიოთ დრაგ ნ დროპის საკითხები...
<section class="widget">
<header class="widget-header">...</header>
<section class="widget-content">...</section>
<footer class="widget-footer">...</footer>
</section>
სტრუქტურის მონახაზი არის ეს. დანარჩენი დისკუსია აქ გავაგრძელოთ.
უნდა გავაკეთოთ ზოგადი რეალიზაცია რომელიც:
სამივე შემთხვევაში უნდა მივიღოთ ერთი შუალედური მონაცემთა სტრუქტურა რომელიც თანაბრად გამოყენებადი იქნება ნებისმიერ ვიდჯეტში.
$feed = array(
"chanel" => "World News",
"url" => "http://.../world-news",
"items" => array(
array(
"title" => "Barak Obama Sucks",
"author" => "Ioseb Dzmanashvili",
"content" => "Barak Obama Really Sucks...",
"url" => "http://.../barak-obama-sucks"
),
array(
"title" => "Puting is Bastard",
"author" => "Ioseb Dzmanashvili",
"content" => "Puting is Bastard and sucks more than Obama...",
"url" => "http://.../putin-is-bastard"
)
)
);
სამომხმარებლო ინტერფეისის შემუშავება
მომხმარებლის რეგისტრაცია/ავტორიზაცია
Slim ან სხვა მსგავსი რაუტინგის მექანიზმის ინტეგრაცია
მონაცემთა ბაზის სტრუქტურის შემუშავება
ვიდჯეტის ცნების განსაზღვრა
განახორციელეთ შემდეგი ინტერფეისის იმპლემენტაცია. გაითვალისწინეთ, რომ აპლიკაციის კოდში უნდა გამოიყენოთ მხოლოდ ეს ინტერფეისი.
მთლიანად თქვენი გასაკეთებელია.
ინტერფეისი:
function db_update($table, $data, $conditions) { }
function db_insert($table, $data) { }
function db_select($table, $conditions) { }
function db_delete($table, $conditions) { }
function db_query($query) { }
გამოყენების ნიმუშები:
// SELECT * FROM users WHERE name='john'
$users = db_select("users", array(
"name" => "john"
));
// SELECT * FROM users WHERE role='admin' AND sex='female'
$users = db_select("users", array(
"role" => "admin",
"sex" => "female"
));
// INSERT INTO users
// (first_name, last_name, email, password)
// VALUES
// ('john', 'doe', '[email protected]', '1234123413241234')
//
$result = db_insert("users", array(
"first_name" => "John",
"last_name" => "Doe",
"email" => "[email protected]",
"password" => md5("test"),
));
if ($result) {
// do something meaningfull...
}
// UPDATE users
// SET last_name='Doe Doe'
// WHERE
// email='[email protected]
//
$result = db_update("users", array(
"last_name" => "Doe Doe",
), array(
"email" => "[email protected]"
));
// DELETE FROM users WHERE email='[email protected]'
//
$result = db_delete("users", array(
"email" => "[email protected]"
));
დეშბორდის სტრუქტურა ვიდჯეტების განსალაგებლად.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.